import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const router = new VueRouter({
    routes: [{
            path: "/Login",
            component: () =>
                import ("../views/Login/Login.vue"),
            name: "Login",
        },
        {
            path: "/",
            component: () =>
                import ("../views/Main/Main.vue"),
            children: [{
                    path: "",
                    component: () =>
                        import ("../views/Home/Home.vue"),
                    name: "Home",
                },
                {
                    path: "/User",
                    component: () =>
                        import ("../views/User/User.vue"),
                    name: "User",
                },
            ],
        },
    ],
});

export default router;